package com.example.bankend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bankend.entity.Saving;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/18 09:55
*/
@Mapper
public interface SavingMapper extends BaseMapper<Saving> {
    public Saving selectSavingByName(String savingName);
    public List<Long> selectAllSavingID();
    public Saving selectSavingById(Long ID);
    public void insertSaving(Saving saving);
    public void deleteSaving(Long ID);

    void recoverSaving(Long savingID);

    List<Saving> selectAll();

    void updateNameAndDes(Long savingID, String savingName, String descrip);
}
